//侧边栏
$$(document).on('click','.design_anli',function(){
	console.log("点击侧边栏进入案例首页");
	mainView.router.load({
        "url":"anli/anli_index.html"
    });
});
//$$(document).on('click','.zy_product',function(){
//	mainView.router.load({
//        "url":"zyproduct/selfplayingmethodlist.html"
//    });
//});
//案例首页点击进入案例详情
console.log('加载全局事件');
$$(document).on('click','.anli_index_enter_detail',function(){
	var anliId = $$(this).data('anliId');
	mainView.router.load({
        "url":"anli/detail.html",
        "context":{"anliId":anliId,}
    });
});
////自营项目列表进入自营详情
//$$(document).on("click",".selfplayitem",function(){
//    var selfplayitem_id = $$(this).data('id');         
//    $$.getJSON(url_get_selfplayingmethoddetail, {id:selfplayitem_id}, function (ajaxresult) {
//        if(ajaxresult.code==1){
//            console.log(ajaxresult.data);
//            mainView.router.load({
//                "url":"zyproduct/selfplayingmethoddetail.html",
//                "context":ajaxresult.data
//            });                     
//        }else{
//            ajaxfail(ajaxresult.msg);
//        }
//    });     
//});